<?
        require_once('../inc/BillingAddresses.php');
        $results = GetBAddresses();
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Database Billing Address Index</title>
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
   
    <body>
       
        <? include('../inc/header.php'); ?>
        <div class="container">
                <h2>Billing Addresses Index</h2>
    	</div>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">
                <table class="table table-striped table-bordered table-condensed table-hover">
                	<tr>
                        <a href="bcreate.php?id=<?=$rs['id']?>">Create</a>
                    </tr>
                    <tr>
                        <th>User id</th><th>Actions</th>
                    </tr>
                    <? while($rs = mysql_fetch_assoc($results)): ?>
                        <tr>
                        	<td><?=$rs['Users_id']?></td>
                            <td>
                                <a href="bdetails.php?id=<?=$rs['id']?> ">Details</a>
                                <a href="bedit.php?id=<?=$rs['id']?>">Edit</a>
                                <a href="bdelete.php?id=<?=$rs['id']?>">Delete</a>
                            </td>
                        </tr>
                    <? endwhile; ?>
                    	
                </table>
            </div>
        </div>
    </body>
</html>
